//
//  ASBaseTabBarController.h
//
//  Created by wFeng on 14-8-12.
//  Copyright (c) 2014年. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "ASBaseNavigationController.h"
#import "ASTabBarController.h"
#import "ASBaseNavigationController.h"


//tabbaritem的类型
typedef enum
{
    KProjectItemType  = 0,
    KMeetingItemType  = 1,
    KNineSpotItemType = 2,
    KCalendarItemType = 3,
    KAccountItemType  = 4,
}KTabbarItemType;


//extern NSString* const TelephoneDialViewDisplayChangedNotification;

//#define RCSCustomTabBarShow

#ifdef RCSCustomTabBarShow
#define RCSCustomTabBar
#endif

#ifndef RCSCustomTabBar
@interface ASBaseTabBarController : UITabBarController
{
@public
	ASBaseNavigationController* _portalNavi;
	ASBaseNavigationController* _todoListNavi;
}

@property (nonatomic, strong) NSMutableArray*   naviArray;           //存储导航控制器
@property (nonatomic, strong) UIImage*          tabBarBackgroundImage;//背景图片
@property (nonatomic, strong) NSMutableArray*   unSelectedImageArray;
@property (nonatomic, strong) NSMutableArray*   selectedImageArray;
@property (nonatomic, strong) NSMutableArray*   itemBgImageViewArray;
@property (nonatomic, strong) ASBaseNavigationController* currNavi;
@property (nonatomic, assign) int               lastSelectedIndex;//上一次选中的tabBarItem的index
@property (nonatomic, assign) BOOL              keyboardShow;

@property (nonatomic, assign) BOOL isAnimationFinished; //!防止多次点击动画还没有结束
@property (nonatomic, assign) int callRecordKeyShowTag;


- (BOOL)setBadgeValue:(int)count withTabbarType:(KTabbarItemType)barItemType;
- (void)setBadetValueWithNum:(NSInteger)numbers withTabbarType:(KTabbarItemType)barItemType;
@end
#else

@interface ASBaseTabBarController:ASTabBarController

@property (nonatomic, strong) NSMutableArray* naviArray;

@end

#endif
